import request from "@/utils/request";
// 获取分类列表
export function list(data) {
  return request("goods/cate/list", data, 'get');
}
// 获取所有分类
export function all(data) {
  return request("goods/cate/all", data, 'get');
}
export function info(data) {
  return request("goods/cate/info", data, 'get');
}
// 开关分类
export function open(data) {
  return request("goods/cate/open", data, 'post');
}
// 添加分类
export function add(data) {
  return request("goods/cate/add", data, 'post');
}
// 编辑分类
export function edit(data) {
  return request("goods/cate/edit", data, 'post');
}
// 删除分类
export function del(data) {
  return request("goods/cate/del", data, 'post');
}

// 获取树状分类
export function treeCate(data) {
  return request("goods/cate/treeCate", data, 'get');
}
